package com.monolithiot.sso.common.data;

/**
 * 2018/11/14 Create by 郭文梁
 * Tuple2
 * 二维元组
 *
 * @author 郭文梁
 * @date 2018/11/14
 */
@SuppressWarnings("all")
public class Tuple2<T1, T2> {
    public static <T1, T2> Tuple2<T1, T2> of(T1 o1, T2 o2) {
        return new Tuple2<>(o1, o2);
    }

    public Tuple2() {
    }

    public Tuple2(T1 o1, T2 o2) {
        this.o1 = o1;
        this.o2 = o2;
    }

    private T1 o1;
    private T2 o2;

    public T1 o1() {
        return o1;
    }

    public T2 o2() {
        return o2;
    }
}
